package com.woniu.zsd.user.controller.form;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class LoginForm {
        @NotNull(message = "用户名不能为空")
        private String phone;
        @NotNull(message = "密码不能为空")
        @Pattern(regexp = "^[0-9A-Za-z]{6,}$", message = "密码格式错误")
        private String password;
}
